<jsp:include page="../template/top.jsp"></jsp:include>

<form
	action="${pageContext.request.contextPath}/relatorio/taxa/ocupacao/${data}"
	method="get">
	<div class="interfaceExterna">
		<h3>
			<a href="#">Per&iacute;odo</a>
		</h3>

		<div>

			<div class="campo">
				<label>In&iacute;cio</label> 
				<input type="text" name="data" id="data" value="<fmt:formatDate value='${data}' pattern='dd/MM/yyyy' />" class="datepicker" />
			</div>
		</div>
	</div>

	<br>

	<div class="botoes">
		<input type="button" value="Buscar" id="botaoBuscar" onclick="javascript:vai();"/> 
		<a href="${pageContext.request.contextPath}/relatorio" id="botaoVoltar">Voltar</a>
	</div>
</form>

<jsp:include page="../template/bottom.jsp"></jsp:include>

<script type="text/javascript">
	function vai() {
		document.location.href = '${pageContext.request.contextPath}/relatorio/taxa/ocupacao/' + escape($('#data').val());
		
	}
</script>